<!-- 我的表格 -->

<template>
  <WebTable class="ScheduleTime-MyTable">
    <RowIndex />

    <RowTitle label="班时名称" bind="timeName" />

    <RowSlot label="班时">
      <template #default="{ row }">{{ row.timeBegin }} - {{ row.timeEnd }}</template>
    </RowSlot>

    <RowSlot label="休息时间">
      <template #default="{ row }">{{ row.relaxBegin }} - {{ row.relaxEnd }}</template>
    </RowSlot>

    <RowSlot label="日程预览" :width="200" noTip>
      <template #default="{ row }">
        <CalendarPreview :obj="row" />
      </template>
    </RowSlot>

    <RowSlot label="班次预览" :minWidth="300" noTip>
      <template #default="{ row }">
        <QueuePreview :obj="row" />
        <QueuePreview :extra="row" />
      </template>
    </RowSlot>

    <RowOperate />
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('../../components', true, /vue$/)),
}
</script>

<style lang="scss">
@import './index.scss';
</style>
